class Person:
    pass
xm=Person()
xm.name="tom"   #动态添加实例属性
Person.eye=2    #动态添加类属性
print(Person.eye)
print(xm.eye)
def eat(self):
    print("吃饭饭")
    pass
import types
# 给实例对象动态添加实例属性
xm.eat=types.MethodType(eat,xm)
xm.eat()
@classmethod
def run(cls):
    print("奔跑")
    pass
Person.run=run
Person.run()
xm.run()
@staticmethod
def play():
    print("打豆豆")
    pass
Person.play=play
Person.play()

